package com.zw.cc.stock;

import com.zw.cc.stock.cache.CacheCtrl;
import com.zw.cc.stock.service.QuotesService;
import com.zw.cc.stock.service.policy.cci.CCIBuySignal;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Created by zwz
 * date 2016/11/23
 * project PACKAGE_NAME
 */
@EnableScheduling
@SpringBootApplication(scanBasePackages = "com.zw.cc.stock")
public class Application {

    private static final Logger LOGGER = LoggerFactory.getLogger(Application.class);


    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);
        LOGGER.info(">>>>>>>服务启动成功<<<<<<");
        ((CacheCtrl) context.getBean("cacheCtrl")).initCache();
    }
}
